<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.4.2.js"></script>
    
    <script type="text/javascript">
		$(function(){
			//alert("123");
		});
		
		function click1(){
		//alert("222");
			$.ajax({
				type:"POST",
				url:"HelloWorld_function2.action",
				data:"name=aaa&test=123",
				success:function(data){
					alert(data);
					$('#templateData').html(data);
				}
			});
		}

	</script>
</head>


<body>
<a href="#" onclick="click1()">test</a>
<div id="templateData"></div>
</body>
</html>
